<div id="clients_journal" class="stn_journal">
	<div class="stn_journal_title"><?php echo $title; ?></div>
	<div class="stn_journal_tools">
		<?php foreach($tools as $tool) { ?>
			<?php echo $tool; ?>
		<?php } ?>	
	</div>
	<div class="stn_journal_pagination">
		<?php echo $pagination; ?>
	</div>
	<div class="stn_journal_body">
		<?php
			$data = array("name"=>"clients_activerecord",
							"id"=>"clients_activerecord",
							"value"=>$activerecord?$activerecord:'',
							"type"=>'hidden'
							); 
			echo form_input($data);
		?>
		<table border="0" cellpadding="4" cellspacing="0" >
			<tr>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($rid, array('url'=>'clients/srt/rid', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($l_name, array('url'=>'clients/srt/l_name', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($f_name, array('url'=>'clients/srt/f_name', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($s_name, array('url'=>'clients/srt/s_name', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($phones, array('url'=>'clients/srt/phones', 'update'=>'m_content')) ?>
				</th>

				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($email, array('url'=>'clients/srt/email', 'update'=>'m_content')) ?>
				</th>

				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($card_num, array('url'=>'clients/srt/card_num', 'update'=>'m_content')) ?>
				</th>
				
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($archive, array('url'=>'clients/srt/archive', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote( $modifyDT, array('url'=>'clients/srt/modifyDT', 'update'=>'m_content')) ?>
				</th>
			</tr>
			<!-- Filter -->
			<!-- 
			<?php echo form_open('clients/fJ', array('name'=>'clients_filter', 'id'=>'clients_filter')); ?>
			<tr class="filter">
					<td>
						<?php
							$data = array('name'=>'rid', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					<td>
						<?php
							$data = array('name'=>'f_name', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					 
					<td>
						<?php
							$data = array('name'=>'s_name', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					
					<td>
						<?php
							$data = array('name'=>'l_name', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					<td>
						<?php
							$data = array('name'=>'phones', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					<td>
						<?php
							$data = array('name'=>'email', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					<td>
						<?php
							$data = array('name'=>'card_num', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					<td>
						<?php
							$data = array('name'=>'archive', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
					<td>
						<?php
							$data = array('name'=>'modifyDT', 'class'=>'input_filter', 'size'=>'100%'); 
							echo form_input($data); 
						?>
					</td>
			</tr>
			<?php echo form_hidden('goFind', '2');?>
			<?php echo form_close();?>
			 -->
			<?php foreach($DS as $row) {?>
				<tr class="<?php echo ($row->rid == $activerecord)?'rowSel':''; ?>" 
					onclick="setActiveRecord('clients', '<?php echo $row->rid?>');" 
					id="clients_<?php echo $row->rid?>"
					ondblclick="setActiveRecord('clients', '<?php echo $row->rid?>');clients_edit();"
				>
					<td>
						<?php echo $row->rid; ?>
					</td>
					<td>
						<?php echo $row->l_name; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->f_name; ?>&nbsp;
					</td>
					 
					<td>
						<?php echo $row->s_name; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->phones; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->email; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->card_num; ?>&nbsp;
					</td>
					<td>
						<?php echo ($row->archive)?$yes:$no; ?>
					</td>
					<td>
						<?php echo $row->modifyDT; ?>
					</td>
				</tr>
			<?php } ?>
		</table>
	</div>
</div>